<?php
  class DB{
      public static function factory($db){
          if(require('driver/'.ucfirst($db).'.php')){
              return new $db;
          }else{
              throw new Exception('Driver not found!!!');
          }
      }
  }
?>